import axios from "axios";
import { BASE, ID, KEY } from "../config"; //需要自己在src目录下，新建config/index.ts
const instance = axios.create({
  baseURL: `${BASE}/1.1`,
  headers: {
    "X-LC-Id": ID,
    "X-LC-Key": KEY,
    "Content-Type": "application/json",
  },
});
export default instance;
